<?php
/**
 * @package		Joomla.Site
 * @subpackage	com_search
 * @copyright	Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
$latest = $this->latestnews;
$listnews = $this->listnews;
$layout = $this->layout;
?>
<form action="" method="post" name="adminForm" id="adminForm">
<table border="0" width="100%" cellpadding="5" cellspacing="0">
<?php for($i=0;$i<sizeof($listnews);$i++){?>   
     <tr>
     	<td valign="top">
        <?php
			$imagePath = Utilities::renderthumbnail($listnews[$i]->images);
			if ($imagePath){
			?>          
			<a href="index.php?option=com_news&view=career&layout=<?php echo $layout?>&page=detail&catid=<?php echo $this->catid?>&scat=<?php echo $this->scat?>&id=<?php echo $listnews[$i]->id?>"><img src="<?php echo $imagePath?>" align="left" style="margin-right:8px;" /></a>
		<?php }?>
        	<h3><a href="index.php?option=com_news&view=career&layout=<?php echo $layout?>&page=detail&catid=<?php echo $this->catid?>&scat=<?php echo $this->scat?>&id=<?php echo $listnews[$i]->id?>"><?php echo $listnews[$i]->title?></a></h3>
            <div style="margin-top:-10px;margin-bottom:10px;"><img src="images/date-icon.png" width="16" />&nbsp;<?php echo date('d-m-Y',strtotime($listnews[$i]->created))?></div>
            <div>
				<?php echo $listnews[$i]->introtext?> <a href="index.php?option=com_news&view=career&layout=<?php echo $layout?>&page=detail&catid=<?php echo $this->catid?>&scat=<?php echo $this->scat?>&id=<?php echo $listnews[$i]->id?>">Read more...</a>
           	</div>
			<div class="clear"></div>
			 <?php if ($i != sizeof($listnews) -1){?>
				<div class="border_line"></div>
			 <?php }?>
        </td>
     </tr>     
<?php }?>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%" border="1">
<tr height="10"></tr>
<tr>
    <td >
        <?php
        echo $this->pagination->getPagesLinks();
        ?>
    </td>
</tr>	    	    
</table>
<div style="padding:5px;"></div>
	<input type="hidden" name="option" value="com_news" />
	<input type="hidden" name="boxchecked" value="0" />
	<input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" />
	<input type="hidden" name="filter_order_Dir" value="<?php echo $this->lists['order_Dir']; ?>" />
	<?php echo JHTML::_('form.token'); ?>
</form>
